home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypercrd / xcmds / true-idl.hqx / TrueIdle! / cards.xml < prev    next >
Text File  |  1992-09-13  |  6KB  |  166 lines

  1. card_2916.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>2916</id>
  6.     <filler1>0</filler1>
  7.     <bitmap>BMAP_3647.pbm</bitmap>
  8.     <cantDelete> <false /> </cantDelete>
  9.     <showPict> <true /> </showPict>
  10.     <dontSearch> <false /> </dontSearch>
  11.     <owner>2683</owner>
  12.     <link rel="stylesheet" type="text/css" href="stylesheet_3108.css" />
  13.     <part>
  14.         <id>1</id>
  15.         <type>field</type>
  16.         <visible> <true /> </visible>
  17.         <dontWrap> <false /> </dontWrap>
  18.         <dontSearch> <false /> </dontSearch>
  19.         <sharedText> <false /> </sharedText>
  20.         <fixedLineHeight> <false /> </fixedLineHeight>
  21.         <autoTab> <false /> </autoTab>
  22.         <lockText> <true /> </lockText>
  23.         <rect>
  24.             <left>0</left>
  25.             <top>0</top>
  26.             <right>576</right>
  27.             <bottom>23</bottom>
  28.         </rect>
  29.         <style>rectangle</style>
  30.         <autoSelect> <false /> </autoSelect>
  31.         <showLines> <false /> </showLines>
  32.         <wideMargins> <false /> </wideMargins>
  33.         <multipleLines> <false /> </multipleLines>
  34.         <reservedFamily> 0 </reservedFamily>
  35.         <titleWidth>0</titleWidth>
  36.         <icon>0</icon>
  37.         <textAlign>center</textAlign>
  38.         <font>Times</font>
  39.         <textSize>24</textSize>
  40.         <textStyle>plain</textStyle>
  41.         <textHeight>32</textHeight>
  42.         <name></name>
  43.         <script></script>
  44.     </part>
  45.     <part>
  46.         <id>2</id>
  47.         <type>field</type>
  48.         <visible> <true /> </visible>
  49.         <dontWrap> <false /> </dontWrap>
  50.         <dontSearch> <false /> </dontSearch>
  51.         <sharedText> <false /> </sharedText>
  52.         <fixedLineHeight> <false /> </fixedLineHeight>
  53.         <autoTab> <false /> </autoTab>
  54.         <lockText> <true /> </lockText>
  55.         <rect>
  56.             <left>0</left>
  57.             <top>23</top>
  58.             <right>513</right>
  59.             <bottom>266</bottom>
  60.         </rect>
  61.         <style>scrolling</style>
  62.         <autoSelect> <false /> </autoSelect>
  63.         <showLines> <false /> </showLines>
  64.         <wideMargins> <false /> </wideMargins>
  65.         <multipleLines> <false /> </multipleLines>
  66.         <reservedFamily> 0 </reservedFamily>
  67.         <titleWidth>0</titleWidth>
  68.         <icon>0</icon>
  69.         <textAlign>left</textAlign>
  70.         <font>Times</font>
  71.         <textSize>12</textSize>
  72.         <textStyle>plain</textStyle>
  73.         <textHeight>16</textHeight>
  74.         <name></name>
  75.         <script></script>
  76.     </part>
  77.     <part>
  78.         <id>13</id>
  79.         <type>field</type>
  80.         <visible> <true /> </visible>
  81.         <dontWrap> <false /> </dontWrap>
  82.         <dontSearch> <false /> </dontSearch>
  83.         <sharedText> <false /> </sharedText>
  84.         <fixedLineHeight> <false /> </fixedLineHeight>
  85.         <autoTab> <false /> </autoTab>
  86.         <lockText> <true /> </lockText>
  87.         <rect>
  88.             <left>0</left>
  89.             <top>266</top>
  90.             <right>44</right>
  91.             <bottom>285</bottom>
  92.         </rect>
  93.         <style>rectangle</style>
  94.         <autoSelect> <false /> </autoSelect>
  95.         <showLines> <false /> </showLines>
  96.         <wideMargins> <false /> </wideMargins>
  97.         <multipleLines> <false /> </multipleLines>
  98.         <reservedFamily> 0 </reservedFamily>
  99.         <titleWidth>0</titleWidth>
  100.         <icon>0</icon>
  101.         <textAlign>left</textAlign>
  102.         <font>Times</font>
  103.         <textSize>14</textSize>
  104.         <textStyle>plain</textStyle>
  105.         <textHeight>18</textHeight>
  106.         <name></name>
  107.         <script></script>
  108.     </part>
  109.     <part>
  110.         <id>14</id>
  111.         <type>field</type>
  112.         <visible> <true /> </visible>
  113.         <dontWrap> <false /> </dontWrap>
  114.         <dontSearch> <false /> </dontSearch>
  115.         <sharedText> <false /> </sharedText>
  116.         <fixedLineHeight> <false /> </fixedLineHeight>
  117.         <autoTab> <false /> </autoTab>
  118.         <lockText> <true /> </lockText>
  119.         <rect>
  120.             <left>44</left>
  121.             <top>266</top>
  122.             <right>115</right>
  123.             <bottom>285</bottom>
  124.         </rect>
  125.         <style>rectangle</style>
  126.         <autoSelect> <false /> </autoSelect>
  127.         <showLines> <false /> </showLines>
  128.         <wideMargins> <false /> </wideMargins>
  129.         <multipleLines> <false /> </multipleLines>
  130.         <reservedFamily> 0 </reservedFamily>
  131.         <titleWidth>0</titleWidth>
  132.         <icon>0</icon>
  133.         <textAlign>left</textAlign>
  134.         <font>Times</font>
  135.         <textSize>14</textSize>
  136.         <textStyle>plain</textStyle>
  137.         <textHeight>18</textHeight>
  138.         <name>time</name>
  139.         <script></script>
  140.     </part>
  141.     <content>
  142.         <layer>card</layer>
  143.         <id>1</id>
  144.         <text>TrueIdle! by Olivier Cinquin</text>
  145.     </content>
  146.     <content>
  147.         <layer>card</layer>
  148.         <id>2</id>
  149.         <text><span class="style2"> stack designed to enhance HyperCard's "idle" handler</span><span class="style1">.If you've already worked with "idle" handlers, you must have noticed they do not work very well: they aren't called while the browse tool is not selected, in some cases when the frontmost window belongs to an XCMD (I've had such a problem with the QuickTime XCMDs), and, finally, it happens that, often after a script execution, your handler doesn't get called for many seconds.The TrueIdle XCMD creates an external window (which remains invisible, and whose name is ""), which receives its own idle messages (external windows receive properly their idle messages), and then sends an "idle" message to the card. The idle messages will be sent whatever HyperCard is doing (except executing a script), even when you're editing a script (this is disagreableΓǪ).To call TrueIdle, just pass it the number of ticks you want to wait between each call (if you pass 0, there will be no call at all). To stop TrueIdle, just close its window:close window "".Now, try drawing on the card, editing scripts, ΓǪ and you'll see that the "time" field is always being updated!----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------This program is freeware.You can include theses routines in any stack you want, but if you intend to sell these stacks or distribute them in shareware, </span><span class="style5">you must first contact me</span><span class="style1"> to obtain a license. My mail address is:Olivier Cinquin16, rue de Strasbourg38 000 GRENOBLEFRANCEIf you have any comments or suggestions please send them to me at the above address or email me at " ocinquin@timb.imag.fr " on the Internet. I'd be very glad to read them!</span></text>
  150.     </content>
  151.     <content>
  152.         <layer>card</layer>
  153.         <id>13</id>
  154.         <text>Time:</text>
  155.     </content>
  156.     <content>
  157.         <layer>card</layer>
  158.         <id>14</id>
  159.         <text>19:56:17</text>
  160.     </content>
  161.     <name></name>
  162.     <script>on opencardTrueIdle 1end opencardon closecardif there is a window "" then close window ""end closecardon idleput the long time into cd fld "time"end idle</script>
  163. </card>
  164.  
  165.  
  166.